/*
 *  CatSpawnSet.h
 *  
 *
 *  Created by Guo Wei Tan on 1/17/14.
 *  Copyright 2014 Catropico. All rights reserved.
 *
 */

#ifndef _CAT_SPAWN_SET_H_
#define _CAT_SPAWN_SET_H_

#include "cocos2d.h"

class CatSpawnSet: public cocos2d::CCObject
{
private:
	//all in seconds
	float _spawnInterval, //original value
		  _spawnTimer,	  //actual timer
		  _prespawnDelay; //delay before spawn starts
	int	_typeOfCat,
		_numberToSpawn;
	
public:
	//===== CONSTRUCTOR =====
	CatSpawnSet(int typeOfCat, float spawnInterval, float numberToSpawn, float prespawnDelay = 0);
	
	bool reduceSpawnTimer(float timeLapse);
	
	//===== GETTERS =====
	int 	getTypeOfCat() { return _typeOfCat; };
	int 	getNumberToSpawn() { return _numberToSpawn; };
	float 	getPreSpawnDelay() { return _prespawnDelay; };
	bool 	hasFinishedSpawning();
};


#endif
